package com.lhh.jiu.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lhh.jiu.entity.Admin;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface AdminService extends IService<Admin> {
    //分页查询
    public IPage<Admin> selectAdmin(int pageNum,int pageSize,String name,String time);

    //新增一条数据
    public int addAdmin(Admin admin);

    //修改一条数据
    public  int editAdmin(Admin admin);

    //根据主键id查询一个数据
    public Admin queryAdmin(Integer id);

    //根据主键删除一个数据
    public int delAdmin(Integer id);

    //查询所有的供应商
    public List<Admin> queryAll();

    //多条件查询
    public List<Admin> queryNameAndTime(String name,String wtime);

    //增加或者更新操作
    public void AddOrUpdate(Admin admin);
}
